/*
* @Author: steven.wang
* @Date:   2019-02-27 10:53:47
* @Last Modified by:   steven.wang
* @Last Modified time: 2019-03-21 11:11:05
*/
var path = require('path');

const config = {
	debug: true,
	name: 'Crawler',

	mysql: {
		host: 'localhost',
		port: 3306,
		user: 'root',
		password: 'password',
		database: 'crawler'
	},

    downloadImg: false, //是否下载图片到硬盘,否则只保存Json信息到文件
    concurrent: 50, //队列并发数
    // 08绿软站链接
    lr08: {
        from: '08绿软站',
        path: 'files/lr08.json',
        host: 'http://www.08lr.cn',
        list: [{
                type: '高清壁纸',
                url: 'http://www.08lr.cn/picture/bizhi/list28_',
                startPage: 1,
                endPage: 4
            }, {
                type: '生活风景',
                url: 'http://www.08lr.cn/picture/fengjing/list29_',
                startPage: 1,
                endPage: 3
            }, {
                type: '美女养眼',
                url: 'http://www.08lr.cn/picture/meinv/list30_',
                startPage: 1,
                endPage: 15
            }, {
                type: '创意设计',
                url: 'http://www.08lr.cn/picture/sheji/list31_',
                startPage: 1,
                endPage: 3
            }
        ]
    },
    // wallhaven图片链接
    wallhaven: {
        from: 'wallhaven',
        path: 'files/wallhaven',
        host: 'https://alpha.wallhaven.cc/latest',
        startPage: 1000,
        // endPage: 1000
        endPage: 14925
    }
};

module.exports = config;